#{extends 'mana-main.html' /}
#{set recommendActive :"active" /}
#{set title :"添加推荐" /}
<br>
<br>
<br>
<br>
<br>

<form class="bs-docs-example form-horizontal" method="post" action="@{Recommends.addRecommend}">
    <fieldset>
        <legend>新增轮播</legend>
<div class="control-group">
    <label class="control-label" for="T-name">标题</label>
    <div class="controls">
      <input type="text" id="T-name" placeholder="输入标题" name="name" required="requied"/>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="T-article">链接</label>
    <div class="controls">
      <input type="text" id="T-article" placeholder="输入链接" name="keyId" required="requied"/>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="T-photo">图片ID</label>
    <div class="controls">
      <input type="text" id="T-photo" placeholder="输入ID" name="photoId" required="requied"/>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="T-weight">权重</label>
    <div class="controls">
      <input type="number" id="T-weight" placeholder="数字权重" name="weight" required="requied"/>
    </div>
  </div>
*{  <div class="control-group">
    <label class="control-label" for="type">推荐类型</label>
    <div class="controls">
      <select id ="type" name="type">
  <option value="0">商品</option>
  <option value="1">文章</option>
</select>
    </div>
  </div>}*
  <div class="control-group">
    <div class="controls">
      <button type="submit" class="btn btn-primary">提交</button>
    </div>
  </div>
    </fieldset>

</form>
